-- crystal_ball
-- created by panyl
-- 地牢格子：水晶球

return {
    autoFight = function(grid)
        local pos = grid:getPos();
        if DungeonInstanceM.isInInstance() then
            -- 如果在副本中，走副本奖励流程
            if DungeonM.isAllMonsterDead() then
                return DungeonActionM.go("take_instance_bonus", pos);
            end
        else
            return DungeonActionM.go("do_building_bonus", pos)
        end
        return false;
    end,
};
